package org.wisdom.cc.apis;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.wisdom.annotation.AppFacade;
import org.wisdom.vo.ResponseResult;

/**
 * 数据字典API
 *
 * @author 张智研
 * @date 2022/10/12 09:41
 **/
@FeignClient(name = "${wisdom.cc.name:wisdom-cc}", path = "/${wisdom.cc.name:wisdom-cc}/dict",
        contextId = "wisdom-cc-dict", primary = false)
public interface DictController {

    /**
     * 根据字典类型查询字典数据信息
     *
     * @author 张智研
     * @date 2022/10/13 16:25
     * @param dictType 数据字典类型
     * @return org.wisdom.vo.ResponseResult<java.lang.String>
     */
    @GetMapping(value = "/type/{dictType}")
    @AppFacade("根据字典类型查询字典数据信息")
    ResponseResult<String> dictType(@PathVariable String dictType);
}
